package teach.aistar.mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import teach.aistar.model.entity.WebSeckill;

import java.util.List;

public interface WebSeckillMapper {
    @Select("select * from web_seckill order by id desc")
    List<WebSeckill> selectWebSeckillAll();

    //插入秒杀商品
    int insert(WebSeckill webSeckill);

    WebSeckill findById(long id);


    @Select("select * from web_seckill where id=#{id}")
    WebSeckill findId(Long id);




}
